/**
 * @Project : ProgrammingExercises
 * @Package : Leetcode
 * @File : Q0706.java
 * @Author : WangRuoyu
 * @Date 2022/12/27 0:38
 */

package leetcode;

public class Q0706 {
    int[] map;

    public Q0706() {
//    public MyHashMap() {
        map = new int[1000001];
        for (int i = 0; i < map.length; i++) {
            map[i] = -1;
        }
    }

    public void put(int key, int value) {
        map[key] = value;
    }

    public int get(int key) {
        return map[key];
    }

    public void remove(int key) {
        map[key] = -1;
    }

    public static void main(String[] args) {
        Q0706 sl = new Q0706();
    }
}
